﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NotaIngresoListForm.aspx.cs" 
Inherits="UILGestion.AlmacenAdmin.NotaIngresoListForm" %>
<%@ Register Assembly="WebLib" Namespace="WebLib" TagPrefix="lib" %>


<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<%@ Register src="~/Control/menuCtrl.ascx" tagname="menuObraCtrl" tagprefix="uc1" %>

<%@ Register src="NotaIngresoListGrid.ascx" tagname="NotaIngresoListGrid" tagprefix="uc2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
     <link rel="stylesheet" type="text/css" href="../estilos/_common/styles/fonts.css" />
 <link rel="stylesheet" type="text/css" href="../estilos/_common/styles/global.css" />
 <link rel="stylesheet" type="text/css" href="../estilos/_common/styles/theme.css" />
    <script src="../Scripts/SearchResult.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
     <asp:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server"  EnablePartialRendering="true" EnableScriptGlobalization="true">
         </asp:ToolkitScriptManager>
    <uc1:menuObraCtrl ID="menuObraCtrl1" runat="server" />
     <asp:Panel ID="Panel1" runat="server"
                   CssClass="Heading secTitle AreaHeading ms-crm-List-Header"
                 >
  <asp:Label ID="Label1" runat="server" Text="LISTAS DE NOTA DE INGRESO" 
             style="font-size: large; color: #960818"></asp:Label>
 
 </asp:Panel>
  <asp:Panel ID="PanelButtom" runat="server"  BackColor="white"     >
  <input id="idObra" type="hidden" runat="server" name="idObra" />
  <input id="idAlmacen" type="hidden" runat="server" name="idalmacen" />

         
         
         
         <table  width="100%">
          <tr>
              <td Width="800px">
              <asp:Panel ID="PanelwButtom" runat="server"   BackColor="white"  GroupingText="Filtros de busqueda">

              <table cellspacing="1" >
          <tr>
          <td align="right" class="style1" width="120px">
                 Num. Nota Ingreso:</td>
                <td class="style1" colspan="5" width="650px"> 
                    <lib:Input ID="documentoTXT" runat="server" 
                         Width="100px"></lib:Input>
                </td>
             <td>&nbsp;</td>
 </tr>
                  <tr>
                      <td align="right" class="style1" width="100px">
                          Proveedor:</td>
                      <td class="style1" colspan="5" width="650px">
                          <lib:Input ID="proveedortxt" runat="server" DataType="List" 
                              Method="GetProveedor" Width="400px"></lib:Input>
                      </td>
                      <td>
                          &nbsp;</td>
                  </tr>
                  <tr>
                      <td align="right">
                          Fecha Inicio:</td>
                      <td width="140px">
  <asp:CalendarExtender ID="CalendarExtender3" 
                                       runat="server"  
                                       TargetControlID="inicioDateTime"
                                       PopupButtonID="ImageButton2" 
                                        
                                       >
                        </asp:CalendarExtender>
                          <asp:TextBox ID="inicioDateTime" runat="server"
                              Width="70px"></asp:TextBox>
                          <asp:ImageButton ID="ImageButton2" runat="Server" 
                              AlternateText="Click aqui para mostrar calendario" 
                              ImageUrl="~/Images/month.gif" Width="16px" />
                          <asp:CalendarExtender ID="CalendarExtender1" runat="server" 
                              PopupButtonID="ImageButton2" TargetControlID="inicioDateTime">
                          </asp:CalendarExtender>
                      </td>
                      <td width="80px" align="right">
                          Fecha Fin:
                          
                      </td>
                      <td width="140px">
                    <asp:CalendarExtender ID="CalendarExtender4" runat="server" 
                                        TargetControlID="finDateTime"  
                                        PopupButtonID="ImageButton1">
                     </asp:CalendarExtender>
                          <asp:TextBox ID="finDateTime" runat="server" Font-Size="X-Small" 
                              Width="70px"></asp:TextBox>
                          <asp:ImageButton ID="ImageButton1" runat="Server" 
                              AlternateText="Click aqui para mostrar calendario" 
                              ImageUrl="~/Images/month.gif" Width="16px" />
                          <asp:CalendarExtender ID="CalendarExtender2" runat="server" 
                              PopupButtonID="ImageButton1" TargetControlID="finDateTime">
                          </asp:CalendarExtender>
                      </td>
                      <td align="right" width="80px">
                          Motivo:</td>
                      <td width="150px">
                          <asp:DropDownList ID="motivoDDL" runat="server" Width="150px" > 
                         
                          </asp:DropDownList>
      
                      </td>
                      <td>
                      </td>
                  </tr>
                  <tr class="ms-crm-Form-Body" >
                      <td align="right">
                          &nbsp;</td>
                      <td width="120px">
                          &nbsp;</td>
                      <td align="right" width="80px">
                          &nbsp;</td>
                      <td width="120px">
                          &nbsp;</td>
                      <td align="right" width="80px">
                          &nbsp;</td>
                      <td align="right">
                          <asp:Button ID="refreshButton" runat="server" CssClass="ms-crm-List-Header" 
                              Text="Actualizar" />
                      </td>
                      <td width="100px">
                          <asp:Button ID="nuevoButton" runat="server" CssClass="ms-crm-List-Header"  Width="90px"
                              onclick="nuevoButton_Click" Text="Nuevo" />
                      </td>
                  </tr>
 </table>
 </asp:Panel>
 </td>
      <td>
                  &nbsp;</td>
          </tr>
      </table>   
   

         <asp:UpdatePanel ID="UpdatePanel1" runat="server"  UpdateMode="Conditional">
         <ContentTemplate>
             <uc2:NotaIngresoListGrid ID="NotaIngresoListGrid1" runat="server"  
              DataSourceID="NotaIngresoListODS" />
             <asp:ObjectDataSource ID="NotaIngresoListODS" 
              runat="server"
             EnablePaging="True"
              SelectCountMethod="Count" 
              SortParameterName="sortExpression"
             SelectMethod="GetNotaIngresoList" 
             typeName="BOL.NotaIngresoBL" >
               <SelectParameters>
                 <asp:querystringparameter  Name="idObra" Type="Int32" querystringfield="idObra"  />
                 <asp:ControlParameter Name="motivo" Type="Int32" ControlID="motivoDDL"  />
                 <asp:ControlParameter Name="proveedor" Type="string" ControlID="proveedortxt"  />
                 <asp:ControlParameter Name="documento" Type="string" ControlID="documentoTXT"  />
                 <asp:ControlParameter Name="fechaInicio" Type="DateTime" ControlID="inicioDateTime"  />
                 <asp:ControlParameter Name="fechaFin" Type="DateTime" ControlID="finDateTime"  />
                 <asp:Parameter Name="startRowIndex" Type="Int32" />
                 <asp:Parameter Name="maximumRows" Type="Int32" />
                 <asp:Parameter Name="sortExpression" Type="String" />

                </SelectParameters>
               </asp:ObjectDataSource>
         </ContentTemplate>
         <Triggers>
         <asp:AsyncPostBackTrigger ControlID="refreshButton" />
         </Triggers>
         </asp:UpdatePanel>

    
    




      

 
       </asp:Panel>
  
    </form>
</body>
</html>
